<div>
    <czy-toolbar>

            <el-button-group>
                <el-button type="primary" icon="plus" size="small" @click="toAdd">新增</el-button>
            </el-button-group>
        </czy-toolbar-btn>
    </czy-toolbar>

    <el-table :data="pageDataMenu" border stripe highlight-current-row>
        <el-table-column prop="name" label="品目名称"></el-table-column>
        <el-table-column prop="coding" label="品目编码"></el-table-column>
        <el-table-column prop="menuGrade" label="品目级别"></el-table-column>
        <el-table-column prop="image" label="图片地址"></el-table-column>
        <el-table-column label="操作" width="200">
            <template scope="scope">
                <el-tooltip content="修改" placement="top" effect="light" :enterable="false">
                    <el-button size="mini" type="warning" icon="edit" @click="toEdit(scope.row)"></el-button>
                </el-tooltip>
                <el-tooltip content="删除" placement="top" effect="light" :enterable="false">
                    <el-button size="mini" type="danger" icon="delete"
                               @click="del(scope.row)"></el-button>
                </el-tooltip>
                <el-tooltip content="查看子菜单" placement="top" effect="light" :enterable="false">
                    <el-button size="mini" type="danger" icon="search"
                               @click="searchSubset(scope.row)"></el-button>
                </el-tooltip>
            </template>
        </el-table-column>
    </el-table>

    <!--弹出框信息-->
    <el-dialog title="" :visible.sync="show" :modal-append-to-body="false" :close-on-click-modal="false"
               size="tiny">
        <el-form label-position="right" label-width="80px" :model="entity"  ref="editForm">
            <el-form-item label="品目名称" >
                <el-input v-model="entity.name" size="small"></el-input>
            </el-form-item>
            <el-form-item label="品目编码">
                <el-input v-model="entity.coding" size="small"></el-input>
            </el-form-item>
            <el-form-item label="图片地址" >
                <el-input v-model="entity.image" size="small"></el-input>
            </el-form-item>
        </el-form>
        <div slot="footer">
            <el-button type="primary" size="small" @click="searchData">提交</el-button>
            <el-button size="small" @click="show = false">取消</el-button>
        </div>
    </el-dialog>



</div>